package com.wn.ziroom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wn.ziroom.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    int insertNewOrder(@Param("orderNumber") long orderNumber,@Param("userId") Integer userId,@Param("provinces") String provinces,@Param("city") String city,@Param("area") String area,@Param("street") String street,@Param("village") String village,@Param("address") String address,@Param("productionId") String productionId,@Param("total") BigDecimal total);

    void updateProState(@Param("orderNumber") String productionOrderNumber);

    void updateProStateToThree(String orderNumber);
}
